package group2assignone.model;

/**
 * Class that models the GSTax.
 * @author group2
 */
public class GSTax {

    private static int GST = 10;  //default of 10% tax
    private static GSTax instance;

    private GSTax() {
    }

    /**
     * Returns an instance of the GST class (this class is a singleton).
     * @return
     */
    public static GSTax getInstanceGSTax() {
        if (instance == null) {
            instance = new GSTax();
        }
        return instance;
    }

    /**
     * Sets the GST
     * @param tax
     */
    public void setGST(int tax) {
        GST = tax;
    }

    /**
     * Returns the GST
     * @return
     */
    public int getGST() {
        return GST;
    }
}
